﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HasuSLUI
{
    public class RegisterdColumn
    {
        public delegate void CreateColumnDelegate(DataGridColumn column);

        public CreateColumnDelegate OnCreateColumn = null;

        public delegate void DataBindingDelegate(DataGridColumn column);

        public DataBindingDelegate OnDataBinding = null;

        public Type _columnType = null;

        public Type ColumnType 
        {
            get { return _columnType ;}
            set { _columnType=value ; }
        }

        public DataTemplate CellEditingTemplate { get; set; }

        public DataTemplate CellTemplate { get; set; }

        //public DependencyProperty BindingProperty { get; set; }

        int _defaultWidth = 50;

        /// <summary>
        /// Gets or sets the default width.
        /// </summary>
        /// <value>The default width.</value>
        public int DefaultWidth
        {
            get { return _defaultWidth; }
            set { _defaultWidth = value; }
        }

    }
}
